home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
Source
/
DBL Pascal Library
/
INIT Shell Folder
/
INIT Example ƒ
/
ResCheck.p
< prev
Wrap
Text File
|
1990-05-28
|
490b
|
19 lines
unit ResCheck;
{Copyright © 1990, David B. Lamkins}
{All rights reserved.}
interface
function DangerousResource (theType: OSType; theID: INTEGER; theName: StringPtr; theHandle: Handle): BOOLEAN;
implementation
function DangerousResource (theType: OSType; theID: INTEGER; theName: StringPtr; theHandle: Handle): BOOLEAN;
var
theSize: LONGINT;
begin
theSize := GetHandleSize(theHandle);
DangerousResource := (theType = 'WDEF') and (theID = 0) and (theSize = 1836);
end;
end.